import { store } from "@/store";
export const useBridgeStore = defineStore("bridge", () => {
  const bridgeType = useStorage("bridgeType", "1");

  function changeType(val: string) {
    bridgeType.value = val;
  }

  return {
    bridgeType,
    changeType,
  };
});

export function useBridgeStoreHook() {
  return useBridgeStore(store);
}
